import request from '@/utils/request'

export function list(params,type) {
    return request({
        url: '/app/doc/list',
        method: 'get',
        params: params,
		type:type
    })
}

export function save(data) {
    return request({
        url: '/app/doc/save',
        method: 'post',
        data: data
    })
}

export function del(params) {
    return request({
        url: '/app/doc/delete',
        method: 'delete',
        params: params
    })
}

export function softDelete(params) {
    return request({
        url: '/app/doc/softDelete',
        method: 'delete',
        params: params
    })
}


export function update(data){
    return request({
        url:'/app/doc/update',
        method:'put',
        data:data
    })
}

export function queryById(params,type){
    return request({
        url:'/app/doc/queryById',
        method:'get',
        params:params,
		type:type
    })
}


export function recovery(params){
    return request({
        url:'/app/doc/recovery',
        method:'get',
        params:params
    })
}

export function docChange(params){
    return request({
        url:'/app/doc/docChange',
        method:'put',
        params:params
    })
}


export function processStart(params){
    return request({
        url:'/app/doc/processStart',
        method:'post',
        params:params
    })
}


export function procDoc(params){
    return request({
        url:'/app/doc/procDoc',
        method:'get',
        params:params
    })
}


export function subTaskDoc(params,type) {
    return request({
        url: '/app/doc/subTaskDoc',
        method: 'get',
        params: params,
        type:type
    })
}